import SingleTon from "../Base/Singleton";
import { ITile } from "../Levels";
import { PlayerManager } from "../Scripts/Player/PlayerManager";
import { TileManager } from "../Scripts/Tile/TileManager";
import { WoodenSkeletonManager } from "../Scripts/WoodenSkeleton/WoodenSkeletonManager";

export default class DataManager extends SingleTon {
    static get Instance() {
        return super.GetInstance<DataManager>()
    }

    mapInfo: Array<Array<ITile>>
    tileInfo: Array<Array<TileManager>>

    mapRowCount: number
    mapColCount: number
    levelIndex: number = 1
    player: PlayerManager
    enimies: WoodenSkeletonManager[]

    reset() {
        this.mapInfo = []
        this.tileInfo = []
        this.enimies = []
        this.player = null
        this.mapRowCount = 0
        this.mapColCount = 0
    }

}